package com.smartstate.autoMaticControl.service;

import com.smartstate.common.util.excelPro.ExcelExportDto;
import com.smartstate.autoMaticControl.dto.ToolDTO;
import com.smartstate.autoMaticControl.entity.Tool;
import org.springframework.web.multipart.MultipartFile;


public interface ToolService extends ServiceBase<Tool> {
    int updateByDTO(Object dto);

    /**
     * 导入数据
     * @param file
     * @return
     * @throws IllegalAccessException
     * @throws ParseException
     * @throws IOException
     */
    int importData(MultipartFile file);

    /**
     * 导出模板
     * @return
     */
    ExcelExportDto exportTemplate();

    /**
     * 导出单表数据
     * @return
     */
    ExcelExportDto exportData(ToolDTO dto);
}
